<urlset xmlns="http://www.google.com/schemas/sitemap/0.9">
    <url>
        <loc><?=$baseUrl?></loc>
        <lastmod>2009-05-24T20:41:52Z</lastmod>
        <changefreq>daily</changefreq>
        <priority>1.0</priority>
    </url>

    <?php foreach ($posts as $post):?>
    <url>
        <loc><?=$baseUrl?>/view/<?php echo $post['Post']['slug']; ?></loc>
        <lastmod><?php echo $time->toAtom($post['Post']['created']); ?></lastmod>
        <changefreq>weekly</changefreq>
        <priority>0.5</priority>
    </url>
    <?php endforeach; ?>

    <?php foreach ($posts as $post):?>
    <url>
            <loc><?=$baseUrl?>/view/<?php echo $post['Post']['slug']; ?></loc>
            <lastmod><?php echo $time->toAtom($post['Post']['created']); ?></lastmod>
            <changefreq>weekly</changefreq>
            <priority>0.8</priority>
        </url>
    <?php endforeach; ?>

    <url>
        <loc><?=$baseUrl?>/contact</loc>
        <lastmod>2008-01-27T20:41:52Z</lastmod>
        <changefreq>monthly</changefreq>
        <priority>0.5</priority>
    </url>

     <url>
        <loc><?=$baseUrl?>/about</loc>
        <lastmod>2008-01-27T20:41:52Z</lastmod>
        <changefreq>monthly</changefreq>
        <priority>0.5</priority>
    </url>

     <url>
        <loc><?=$baseUrl?>/download</loc>
        <lastmod>2008-01-27T20:41:52Z</lastmod>
        <changefreq>monthly</changefreq>
        <priority>0.5</priority>
    </url>

     <url>
        <loc><?=$baseUrl?>/search</loc>
        <lastmod>2008-01-27T20:41:52Z</lastmod>
        <changefreq>monthly</changefreq>
        <priority>0.5</priority>
    </url>

     <url>
        <loc><?=$baseUrl?>/freelogo.rss</loc>
        <lastmod>2008-01-27T20:41:52Z</lastmod>
        <changefreq>monthly</changefreq>
        <priority>0.5</priority>
    </url>

     <url>
        <loc><?=$baseUrl?>/comment.rss</loc>
        <lastmod>2008-01-27T20:41:52Z</lastmod>
        <changefreq>monthly</changefreq>
        <priority>0.5</priority>
    </url>

    <url>
        <loc><?=$baseUrl?>/privacy</loc>
        <lastmod>2008-01-27T20:41:52Z</lastmod>
        <changefreq>monthly</changefreq>
        <priority>0.5</priority>
    </url>

    <url>
        <loc><?=$baseUrl?>/terms</loc>
        <lastmod>2008-01-27T20:41:52Z</lastmod>
        <changefreq>monthly</changefreq>
        <priority>0.5</priority>
    </url>

    <url>
        <loc><?=$baseUrl?>/sitemap</loc>
        <lastmod>2008-01-27T20:41:52Z</lastmod>
        <changefreq>monthly</changefreq>
        <priority>0.5</priority>
    </url>

    <url>
        <loc><?=$baseUrl?>/copyright</loc>
        <lastmod>2008-01-27T20:41:52Z</lastmod>
        <changefreq>monthly</changefreq>
        <priority>0.5</priority>
    </url>

    <url>
        <loc><?=$baseUrl?>/help</loc>
        <lastmod>2008-01-27T20:41:52Z</lastmod>
        <changefreq>monthly</changefreq>
        <priority>0.5</priority>
    </url>

</urlset>